import random

# 定义牌
cards = ['A'] * 6 + ['K'] * 6 + ['Q'] * 6 + ['大王', '小王']

# 随机洗牌
random.shuffle(cards)

# 初始化玩家
players = {f'玩家{i+1}': [] for i in range(4)}

# 发牌
for _ in range(5):  # 每人发5张
    for player in players:
        players[player].append(cards.pop())

# 打印每个玩家的牌
for player, hand in players.items():
    print(f"{player} 的牌: {hand}")
